#include "debug_platform.h"
#include "ui_debug_platform.h"
#include "main.h"

debug_platform::debug_platform(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::debug_platform)
{
    ui->setupUi(this);
    setWindowTitle(trUtf8("调试台"));
}

debug_platform::~debug_platform()
{
    delete ui;
}

void debug_platform::on_temperature_lineEdit_editingFinished()
{
   TEM=ui->temperature_lineEdit->text().toInt()*0.1;
}

void debug_platform::on_pressure_lineEdit_editingFinished()
{
    PSU=ui->pressure_lineEdit->text().toInt();
}

void debug_platform::on_checkBox_1_stateChanged(int arg1)
{
    bottom_water_level_isreached=(arg1==Qt::Checked);
}

void debug_platform::on_checkBox_2_stateChanged(int arg1)
{
     top_water_level_isreached=(arg1==Qt::Checked);
}

void debug_platform::on_checkBox_3_stateChanged(int arg1)
{
    water_switch_isopen=(arg1==Qt::Checked);
}

void debug_platform::on_checkBox_4_stateChanged(int arg1)
{
    inter_pressure_switch_isreached=(arg1==Qt::Checked);
}

void debug_platform::on_checkBox_5_stateChanged(int arg1)
{
    front_door_closed_in_place=(arg1==Qt::Checked);
}

void debug_platform::on_checkBox_6_stateChanged(int arg1)
{
    front_door_opened_in_place =(arg1==Qt::Checked);
}

void debug_platform::on_checkBox_7_stateChanged(int arg1)
{
    front_door_Sealing_strip_pressure_in_place=(arg1==Qt::Checked);
}

void debug_platform::on_checkBox_8_stateChanged(int arg1)
{
   back_door_closed_in_place =(arg1==Qt::Checked);
}

void debug_platform::on_checkBox_9_stateChanged(int arg1)
{
    back_door_opened_in_place =(arg1==Qt::Checked);
}

void debug_platform::on_checkBox_10_stateChanged(int arg1)
{
    back_door_Sealing_strip_pressure_in_place=(arg1==Qt::Checked);
}
